
var skList = [

    
]
var testUrl = 'https://api.deepseek.com/chat/completions'
var keyong = []
var model = 'deepseek-chat'
worke()
async function worke() {
    for (let sk of skList) {
        await testSk(sk);
    }
    console.log('可用', keyong)
}

async function testSk(sk) {
    var res = await fetch(testUrl, {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
            'Authorization': 'Bearer ' + sk
        },
        body: JSON.stringify({
            'model': model,
            'messages': [
                { 'role': 'user', 'content': 'Hello!' }
            ]
        })
    }).then(res => res.json());
    console.log(res)
    if (res.id != null) {
        keyong.push(sk)
    }

} 